<%@ page import="hp.com.entity.Users" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%
    String path = request.getContextPath();
    request.setAttribute("path", path);

    Users userSession =(Users) request.getSession().getAttribute("userSession");

    Object phonemsg = request.getAttribute("phonemsg");
    request.setAttribute("phonemsg",phonemsg);

    Object emailmsg = request.getAttribute("emailmsg");
    request.setAttribute("emailmsg",emailmsg);

    Object pwdmsg = request.getAttribute("pwdmsg");
    request.setAttribute("pwdmsg",pwdmsg);
%>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link type="text/css" rel="stylesheet" href="${path}/jbs/css/style.css"/>
    <!--[if IE 6]>
    <script src="${path}/jbs/js/iepng.js" type="text/javascript"></script>
        <script type="text/javascript">
           EvPNG.fix('div, ul, img, li, input, a'); 
        </script>
    <![endif]-->

    <script type="text/javascript" src="${path}/jbs/js/jquery-1.8.2.min.js"></script>
    <script type="text/javascript" src="${path}/jbs/js/menu.js"></script>

    <script type="text/javascript" src="${path}/jbs/js/select.js"></script>

    <link rel="icon" href="<%=path%>/jbs/images/ico.ico" type="image/x-icon">
    <title>账户安全-青鸟优选</title>
</head>
<body style="margin: 0">
<div class="soubg">
    <div class="sou">
        <span class="fr">
        	<span class="fl">
                <c:choose>
                    <c:when test="<%= userSession == null%>">
                        <a href="${path}/jbs/Regist.jsp" style="color:##02A4F8;">免费注册</a>&nbsp;|&nbsp;
                        <a href="${path}/jbs/Login.jsp" style="color:##02A4F8;">马上登录</a>
                    </c:when>
                    <c:otherwise>
                        <%=userSession.getLoginname()%> |&nbsp;<a href="${path}/User">个人中心</a> | <a href="${path}/Orders">我的订单</a> |
                        <a href="${path}/Cart#showCart">购物车</a>
                    </c:otherwise>
                </c:choose>&nbsp;
            </span>
        </span>
    </div>
</div>
<!--Begin Header Begin-->
<div class="m_top_bg">
    <div class="top">
        <div class="m_logo"><a href="<%=path%>/Index"><img src="${path}/jbs/images/logo1.png"/></a></div>
    </div>
</div>
<!--End Header End--> 
<div class="i_bg bg_color">
    <!--Begin 用户中心 Begin -->
    <div class="m_content">
        <div class="m_left">
            <div class="left_n">管理面板</div>
            <div class="left_m" style="padding: 0">
                <div class="left_m_t t_bg2">会员中心</div>
                <ul>
                    <a href="${path}/User" ><li >用户信息</li></a>
                    <a href="${path}/Address"><li>地址管理</li></a>
                    <a href="${path}/jbs/Member_Collect.jsp"><li>我的收藏</li></a>
                </ul>
            </div>
            <div class="left_m" style="padding: 0">
                <div class="left_m_t t_bg1">订单中心</div>
                <ul>
                    <a href="${path}/Orders"> <li>我的订单</li></a>
                </ul>
            </div>
            <div class="left_m" style="padding: 0">
                <div class="left_m_t t_bg3">安全中心</div>
                <ul>
                    <a href="${path}/jbs/Member_Safe.jsp"><li  style="background-color: #02A4F8;color: #FFFFFF">账户安全</li></a>
                </ul>
            </div>
        </div>
		<div class="m_right">
            <p></p>
            <div class="mem_tit">账户安全</div>
            <div class="m_des">
                <form action="${path}/checkPhoneUpdateServlet">
                    <p style="padding-left: 58px; color:red">${phonemsg}</p>
                    <input type="hidden" value="${userSession.id}" name="id"/>
                    <table border="0" style="width:880px;" cellspacing="0" cellpadding="0">
                        <tr height="45">
                            <td width="80" align="right">原手机 &nbsp; &nbsp;</td>
                            <td><input type="text" value="" name="oldphone" class="add_ipt" style="width:180px;"/>&nbsp;
                                <font
                                        color="#ff4e00">*</font></td>
                        </tr>
                        <tr height="45">
                            <td align="right">新手机 &nbsp; &nbsp;</td>
                            <td><input type="text" value="" name="newphone" class="add_ipt" style="width:180px;" onblur="checknewphone()"/>&nbsp;
                                <font
                                        color="#ff4e00">*</font></td>
                        </tr>
                        <tr height="50">
                            <td>&nbsp;</td>
                            <td><input type="submit" value="确认修改" class="btn_tj" onclick="checkPhone()"/></td>
                        </tr>
                    </table>
                </form>
            </div>
            
            <div class="m_des">
                <form action="${path}/checkEmailUpdateServlet">
                    <p style="padding-left:58px; color:red">${emailmsg}</p>
                    <input type="hidden" value="${userSession.id}" name="id"/>
                    <table border="0" style="width:880px;" cellspacing="0" cellpadding="0">
                        <tr height="45">
                            <td width="80" align="right">原邮箱 &nbsp; &nbsp;</td>
                            <td><input type="text" value="" name="oldemail" class="add_ipt" style="width:180px;"/>&nbsp;
                                <font
                                        color="#ff4e00">*</font></td>
                        </tr>
                        <tr height="45">
                            <td align="right">新邮箱 &nbsp; &nbsp;</td>
                            <td><input type="text" value="" name="newemail" class="add_ipt" style="width:180px;"/>&nbsp;
                                <font
                                        color="#ff4e00">*</font></td>
                        </tr>
                        <tr height="50">
                            <td>&nbsp;</td>
                            <td><input type="submit" value="确认修改" class="btn_tj"/></td>
                        </tr>
                    </table>
                </form>
            </div>
            
            <div class="m_des">
                <form action="${path}/checkPwdUpdateServlet">
                    <p style="padding-left:58px; color:red">${pwdmsg}</p>
                    <input type="hidden" value="${userSession.id}" name="id"/>
                    <table border="0" style="width:880px;" cellspacing="0" cellpadding="0">
                        <tr height="45">
                            <td width="80" align="right">原密码 &nbsp; &nbsp;</td>
                            <td><input type="password" value="" name="oldpwd" class="add_ipt" style="width:180px;"/>&nbsp;
                                <font
                                        color="#ff4e00">*</font></td>
                        </tr>
                        <tr height="45">
                            <td align="right">新密码 &nbsp; &nbsp;</td>
                            <td><input type="password" value="" name="newpwd1" class="add_ipt"
                                       style="width:180px;"/>&nbsp; <font
                                    color="#ff4e00">*</font></td>
                        </tr>
                        <tr height="45">
                            <td align="right">确认密码 &nbsp; &nbsp;</td>
                            <td><input type="password" value="" name="newpwd2" class="add_ipt"
                                       style="width:180px;"/>&nbsp; <font
                                    color="#ff4e00">*</font></td>
                        </tr>
                        <tr height="50">
                            <td>&nbsp;</td>
                            <td><input type="submit" value="确认修改" class="btn_tj"/></td>
                        </tr>
                    </table>
                </form>
            </div>







            
        </div>
    </div>
	<!--End 用户中心 End--> 
    <!--Begin Footer Begin -->
    <div class="b_btm_bg b_btm_c">
        <div class="b_btm">
            <table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;"
                   cellspacing="0" cellpadding="0">
                <tr>
                    <td width="72"><img src="${path}/jbs/images/b1.png" width="62" height="62"/></td>
                    <td><h2>正品保障</h2>正品行货 放心购买</td>
                </tr>
            </table>
            <table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;"
                   cellspacing="0" cellpadding="0">
                <tr>
                    <td width="72"><img src="${path}/jbs/images/b2.png" width="62" height="62"/></td>
                    <td><h2>满38包邮</h2>满38包邮 免运费</td>
                </tr>
            </table>
            <table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;"
                   cellspacing="0" cellpadding="0">
                <tr>
                    <td width="72"><img src="${path}/jbs/images/b3.png" width="62" height="62"/></td>
                    <td><h2>天天低价</h2>天天低价 畅选无忧</td>
                </tr>
            </table>
            <table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;"
                   cellspacing="0" cellpadding="0">
                <tr>
                    <td width="72"><img src="${path}/jbs/images/b4.png" width="62" height="62"/></td>
                    <td><h2>准时送达</h2>收货时间由你做主</td>
                </tr>
            </table>
        </div>
    </div>
    <div class="btmbg">
        <div class="btm">
            <a href="https://beian.miit.gov.cn">备案/许可证编号：鄂ICP备20008779号-1</a> <br />本站仅供个人学习实践，无实际购买功能
        </div>
    </div>
    <!--End Footer End -->    
</div>

</body>


</html>
